home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 201 / MF_UK_201_1.iso / pc / DiscContents / Software / Top freeware / VDrift 080805 / vdrift-2008-08-05-mac.dmg / docs / README < prev    next >
Encoding:
Text File  |  2008-08-06  |  3.0 KB  |  68 lines

  1. VDrift
  2. 08-05-08
  3. Linux source release notes
  4. by Joe Venzon
  5. http://www.vdrift.net
  6.  
  7. The most up-to-date version of these instructions can be found at the following URL:
  8. http://wiki.vdrift.net/Compiling
  9.  
  10. ===Prerequisites===
  11. Make sure you have all the required libraries and build tools. Make sure you also have the development files for each of the libraries.
  12.  
  13. The required libraries include:
  14.  
  15.  * libsdl - Simple Direct Media Layer
  16.  * sdl-gfx - Graphics drawing primitives library for SDL
  17.  * sdl-image - Image file loading library for SDL
  18.  * sdl-net - Low-level network library for SDL
  19.  * vorbisfile - File loading library for the ogg vorbis format
  20.  
  21. Your Linux distribution may have different package names and/or bundled differently. The list above should give enough information to search for applicable packages within your distribution's package manager.
  22.  
  23. Bullet is required for physics and is included in the source.
  24. On linux it can be installed like this:
  25.  * cd bullet-2.66
  26.  * ./configure
  27.  * jam bulletcollision bulletmath
  28.  
  29. This should put the bullet libraries into a spot in the bullet tree that the VDrift build files are expecting (in either bullet/out/linuxx86/optimize/libs or bullet/out/linux/optimize/libs).
  30.  
  31. ====SCons====
  32. As of the 2005-10-02 release, VDrift no longer uses ./configure, make, etc. (autotools). Now the project is built with SCons (http://scons.org/).
  33.  
  34. There are two ways to use SCons. The first way is to install scons on your system, then you can use it simply by the name of the program, "scons". The second way is to use the scons-local package (included with VDrift) which will do the same thing but doesn't require that you install scons on your system. To do this, see the section below titled "Optional: Using scons-local instead of installing SCons".
  35.  
  36. ===Get the Code===
  37. If you're reading this, you already have the Linux source package and have unpacked the archive.
  38.  
  39. Make sure you've changed directories into the location of your newly created VDrift source tree:
  40.  
  41.  cd vdrift
  42.  
  43. ===Compiling===
  44. To compile VDrift, just use the "scons" command:
  45.  
  46.  scons
  47.  
  48. ====Optional: Using scons-local instead of installing SCons====
  49. If you have decided not to install SCons on your system, you can use scons-local. To set it up, do the following:
  50.  
  51.  tar zxvf tools/scons-local-0.96.1.tar.gz
  52.  
  53. Where the step above refered to the "scons" command, you should run "./scons.py" instead.
  54.  
  55. ====Options====
  56. You may need to use one or more compile options. To compile with optimization for a certain platform, you can use the "arch" option:
  57.  
  58.  scons arch=a64
  59.  
  60. Compiling VDrift in "release" mode will turn off debugging options, and enbale more compiler optimizations:
  61.  
  62.  scons release=1
  63.  
  64. Note: There are many more scons options, see the scons documentation for more information.
  65.  
  66. ===Installing===
  67. To install VDrift, copy the build/vdrift executable to the vdrift root folder, then just move the vdrift tree to where you'd like the final location to be.  Using "scons install" is not recommended for this release; the scons install script for VDrift is out of date and we have no one to maintain it.
  68.